﻿using System;
using System.Collections.Generic;

namespace Medianamik.UI.Web.Shop.Data.Dto
{
    public class ProductDto : ProductDto<Brand, Category, Model>
    {
    }

    public class ProductDto<TBrand, TCategory, TModel>
        where TBrand : Interfaces.IBrand
        where TCategory: Interfaces.ICategory
        where TModel: Interfaces.IModel
    {
        public string Name { get; set; }
        public string SmallImage { get; set; }
        public Guid NodeId { get; set; }
        public string Title { get; set; }
        public string Url { get; set; }
        public string Image { get; set; }
        public double Weight { get; set; }
        public double Height { get; set; }
        public double Length { get; set; }
        public double Width { get; set; }
        public IList<ModelGroupDto<TModel>> ModelGroups { get; set; }
        public TBrand Brand { get; set; }
        public IList<TCategory> Categories { get; set; }
        public IList<TModel> Models{ get; set; }
    }
}
